package com.wcpdoc.exam.core.service.impl;

import com.wcpdoc.core.dao.BaseDao;
import com.wcpdoc.core.service.impl.BaseServiceImp;
import com.wcpdoc.exam.core.dao.ExamRuleDao;
import com.wcpdoc.exam.core.dao.MockExamRuleDao;
import com.wcpdoc.exam.core.entity.ExamRule;
import com.wcpdoc.exam.core.entity.MockExamRule;
import com.wcpdoc.exam.core.service.*;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * 考试随机规则服务层实现
 * <p>
 * v1.0 chenyun 2021-03-24 13:39:37
 */
@Service
public class MockExamRuleServiceImpl extends BaseServiceImp<MockExamRule> implements MockExamRuleService {
    @Resource
    private MockExamRuleDao examRuleDao;
    @Resource
    private QuestionTypeService questionTypeService;
    @Resource
    private QuestionService questionService;
    @Resource
    private ExamService examService;
    @Resource
    private ExamQuestionService examQuestionService;

    @Override
    @Resource(name = "mockExamRuleDaoImpl")
    public void setDao(BaseDao<MockExamRule> dao) {
        super.dao = dao;
    }

    @Override
    public List<MockExamRule> getList(Integer examId) {
        return examRuleDao.getList(examId);
    }

    @Override
    public void clear(Integer examId) {
        examRuleDao.clear(examId);
    }

    @Override
    public List<Map<String, Object>> getListUser(String id) {
        return null;
    }
}
